<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <input type="text" id="input" />
    <button id="btn">存</button>
    <script>
      let inputEle = document.getElementById('input')
      let btnEle = document.getElementById('btn')
      btnEle.addEventListener('click', () => {
        let content = inputEle.value
        let sym = Symbol('12345')
        let key = sym.description   
        console.log(key);
            
        localStorage.setItem(key, JSON.stringify(content))
      })
    </script>
  </body>
</html>
